﻿#define _CRT_SECURE_NO_WARNINGS//模拟实现库函数strlen
#include<stdio.h>
#include<assert.h>
int my_strlen(const char* a)
{
	assert(a);
	int count = 0;
	while (*a)
	{
		count++;
		a++;
	}
	return count;
}
int main()
{
	char arr[] = "abcdef";
	printf("%d", my_strlen(arr));

	return 0;
}